* {
  margin: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

.box {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  top: 0;
  left: 0;
}

.popupa {
  position: fixed;
  width: 100%;
  height: 100%;
  background: transparent;
  top: 0;
  left: 0;
  display: none;
}

.popupa .wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dice-wrap {
  width: 30vw;
  height: 30vw;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.dice-all {
  width: 100px;
  height: 97px;
  background-size: auto 100%;
  transform: scale(0.8, 0.8);
  background-image: url(../assets/dice7.png);
}

.ani {
  animation: dice 2s steps(24, start) 0ms infinite normal backwards;
  filter: blur(2px);
}

@keyframes dice {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: -2400px 0;
  }
}

.popup .wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup1,
.popup2,
.popup3,
.popup4,
.popup5,
.popup6,
.popup7,
.popup8,
.popup9,
.popup10 {
  display: none;
}

.bg {
  width: 70vw;
  height: 99vw;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bg .btn {
  position: absolute;
  width: 28vw;
  left: 21vw;
  bottom: 0vw;
}

.bg1 {
  background-image: url(../assets/p1.png);
}

.bg2 {
  background-image: url(../assets/p2.png);
}

.bg3 {
  background-image: url(../assets/p3.png);
}

.bg4 {
  background-image: url(../assets/p4.png);
}

.bg5 {
  background-image: url(../assets/p5.png);
}

.bg6 {
  background-image: url(../assets/p6.png);
}

.bg7 {
  background-image: url(../assets/p7.png);
}
.bg8 {
  background-image: url(../assets/p8.png);
}
.bg9 {
  background-image: url(../assets/p9.png);
}

.tip {
  position: absolute;
  width: 30vw;
  height: 11vw;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  top: 4vw;
  color: #fff;
  line-height: 12vw;
  text-align: center;
  display: none;
}

.tip p {
  margin-left: 7vw;
}

.tip.chance {
  left: 4vw;
  background-image: url(../assets/chance.png);
}

.tip.gold {
  left: 36vw;
  background-image: url(../assets/gold.png);
}

.fixbot {
  position: absolute;
  width: 16vw;
  bottom: 4vw;
  display: none;
}

.gift {
  left: 4vw;
}

.dice {
  right: 4vw;
}

.event2 {
  width: 50%;
  margin: 18vw auto;
  text-align: center;
}

.e-word2 {
  margin-top: -15vw;
  color: #462706;
  font-weight: bold;
}

.ticket {
  width: 45vw;
  height: 25vw;
  background-image: url(../assets/event3.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin-top: 15vw;
  text-align: center;
  color: #462706;
  line-height: 25vw;
  font-weight: bold;
}

.q-wrap {
  background-color: #facd58;
  color: #462706;
  font-weight: bolder;
  width: 75%;
  margin-top: 18vw;
  font-size: 1rem;
  line-height: 2;
  vertical-align: middle;
  padding: 5px;
}

.answer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 2vw;
}

.bool {
  width: 5vw;
  height: 5vw;
  margin: 1vw;
  display: none;
}

.tip1 {
  margin-top: 4vw;
  color: #462706;
}

.gift-list {
  width: 80%;
  color: #462706;
  font-weight: bold;
  margin-top: 2vw;
}

.gift-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 3vw;
  background: #facd58;
}

.tip2 {
  width: 80%;
  text-align: center;
  font-weight: bold;
  color: #462706;
  line-height: 2;
  margin-top: 4vw;
}

.scroll {
  overflow-y: auto;
  width: 85%;
  height: 53%;
  margin-top: 24vw;
  padding: 2vw;
}

.item {
  width: 100%;
  display: flex;
  flex-direction: row;
}

.item .avatar {
  width: 12vw;
  height: 12vw;
  border-radius: 50%;
}

.item-word {
  width: 100%;
  padding: 0 1vw;
  color: #462706;
  font-weight: bold;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.user {
  width: 60%;
}

.title {
  width: 50%;
  margin-top: 12vw;
}

form {
  width: 80%;
  margin-top: 12vw;
}

.form-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  color: #462706;
  font-weight: bold;
  margin: 7vw 0;
}

input {
  width: 75%;
  outline: none;
  border: none;
  background: transparent;
  border-bottom: 1px solid #462706;
}

.rule-wrap {
  width: 75%;
  height: 52vw;
  margin-top: 22vw;
  overflow-y: auto;
}

.rule-wrap p {
  color: #462706;
  font-size: 0.8rem;
  margin: 1vw auto;
  width: 100%;
  padding: 0 1vw;
  line-height: 150%;
}

.rule-wrap p.title {
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.bag {
  position: absolute;
  width: 16vw;
  right: 4vw;
  top: 4vw;
  display: none;
}
